<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
/*
	$title
	$icons
	$items
	$links
	$tables
	$subview
	$data
*/
$CI = &get_instance();
?>
<link href="css/admin/styles.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascript/admin/jquery-1.4.1.js"></script>
<script type="text/javascript" src="javascript/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="javascript/imagetrail.js"></script>
<script type="text/javascript">

tinyMCE.init({

// General options
//convert_urls : false,
relative_urls : true,
document_base_url : "http://localhost/testmvc/",
mode : "textareas",

theme : "advanced",
 skin : "o2k7",
 invalid_elements : "div,script,abbr,acronym,address,applet,area,bdo,big,blockquote,button,caption,cite,code,col,colgroup,dd,del,dfn,iframe,input,ins,isindex,kbd,label,legend,map,menu,noscript,object,optgroup,option,param,textarea,var,ruby,samp,select,rtc",	
plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

 

// Theme options

theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect", 
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", 
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,|,sub,sup,|,charmap", 

theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Office example CSS
content_css : "css/content.css",
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
         <script type="text/javascript" src="js/vi_002.js" onload="tinymce.dom.ScriptLoader._onLoad(this,'javascript/tiny_mce/langs/vi.js',0);"></script>
         <script type="text/javascript" src="js/editor_template.js" onload="tinymce.dom.ScriptLoader._onLoad(this,'javascript/tiny_mce/themes/advanced/editor_template.js',1);"></script>
         <script type="text/javascript" src="js/vi.js"></script>
         <script type="text/javascript" src="js/editor_plugin_002.js" onload="tinymce.dom.ScriptLoader._onLoad(this,'javascript/tiny_mce/plugins/paste/editor_plugin.js',2);"></script>
         <script type="text/javascript" src="js/editor_plugin.js" onload="tinymce.dom.ScriptLoader._onLoad(this,'javascript/tiny_mce/plugins/inlinepopups/editor_plugin.js',3);"></script>
         

<div align="center">
<table border="0" width="1000" cellpadding="0" cellspacing="0" style="border:1px solid #99bbe8;">
  <tr>
    <td colspan="2">
    	<?php
		$CI->load->view('admin/thongtintaikhoan');
		?>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center">
    	<?php
		$CI->load->view('admin/banner');
		?>
    </td>
  </tr>
  <tr>
    <td width="170" valign="top">
    	<?php
		
		$CI->load->view('admin/vmenu', array('width'=>220, 'icons'=>$icons, 'items'=>$items, 'links'=>$links, 'tables'=>$tables));
		?>
    </td>
    <td width="714" valign="top">
    	<?php
    	if(isset($subview))
		{
			if(isset($data))
				$CI->load->view('admin/form', array('title'=>$title, 'width'=>770, 'subview'=>$subview, 'data'=>$data));
			else
				$CI->load->view('admin/form', array('title'=>$title, 'width'=>770, 'subview'=>$subview, 'data'=>NULL));
/*			if(isset($data))
				$CI->load->view($subview, $data);
			else
				$CI->load->view($subview);
				*/
		}
		else
		{
			if(isset($data))
//				echo $data;
				$CI->load->view('admin/form', array('title'=>$title, 'width'=>770, 'subview'=>NULL, 'data'=>$data));
		}
		?>
    </td>
  </tr>
</table>
</div>